import {
  createSSRApp
} from 'vue'
import uviewPlus, { setConfig } from 'uview-plus'
import App from './App.vue'
export function createApp () {
  setConfig({
    // 修改$u.config对象的属性
    config: {
      unit: 'rpx',
      interceptor: {
        navbarLeftClick: () => {
          console.log('全局拦截')
        }
      }
    },
    // 修改$u.props对象的属性
    props: {
      input: {
        fontFamily: 'DINAlternate'
      }
    }
  })
  const app = createSSRApp(App)
  app.use(uviewPlus)
  return {
    app
  }
}
